import RecordIndex from '@/components/record/index.vue'

// 定义一个路由列表(子路由)

const list = [
    {
        name: 'RecordIndex',
        path: 'index', //生成路由地址 ： /record/index
        component: RecordIndex,
        meta:{login:true}
    },
]

//父级的组件模板
const layout = {
    template: '<router-view></router-view>'
}

export default [
    {
        name: 'record',
        path: '/record',
        component: layout,
        children: list,
    }
]